package core.tool.common;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import apps.reading.db.WebSourceService;

public class SystemInfo {
	
	public static String ROOT_PATH="D:/myJavaWorkSpace/JavaHi/WebRoot/";
	
	public static Object getBean(String beanName) {
	      ApplicationContext ctx = new FileSystemXmlApplicationContext(SystemInfo.ROOT_PATH+"WEB-INF/applicationContext.xml");
	      Object object = ctx.getBean(beanName);
	      return object;
	}

}
